package com.woniuxy.happylife.dao;

import com.woniuxy.happylife.entity.RbacMenu;
import com.woniuxy.happylife.entity.RbacRole;
import com.woniuxy.happylife.entity.RbacRoleMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname RbacRoleDao
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/2/17 15:10
 * @Created by hang
 */
public interface RbacMenuDao {
    List<RbacMenu> findByUsername(String username);
    List<RbacMenu> findChildren(int id);
    List <String>findMenuByRoleId(int roleId);
    int deleteMenusByRoleId(int roleId);
    List <Integer> findByMenuNames(@Param("menuNames") List<String> menuNames);
    int addByRoleMenus(@Param("roleMenus")List<RbacRoleMenu>roleMenus);
}
